#coding=utf-8
import hashlib
from binascii import b2a_hex
import struct

def encrypt(password):
  ret = ""
  temp = password + b"HongJunGuo1976_20040329"
  temp = temp.decode("utf-8")
  #temp = b()
  for i in temp:
    i16 = int(b2a_hex(i),16)
    ret += struct.pack('c',chr(i16))
  
  m = hashlib.sha256()
  m.update(temp)
  print m.hexdigest()
  
if __name__ == "__main__":
  encrypt("123456")

      
